/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.myapp.Entity;

import com.aal.entitybean.Products;

/**
 *
 * @author Windows7
 */
public class ShoppingCartItem  extends Products {

    private int amount;
    private float value;

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public float getValue() {
        value = (float)(amount*getUnitPrice());
        return value ;
    }

    public void setValue(float value) {
       this.value =value;
    }
 
    public  ShoppingCartItem(String proID, String proName, String images, float  price) {
        
        this.setProductID(proID);
        this.setProductName(proName);
        this.setImage(images);
        this.setUnitPrice(price);

    }
}
